package com.xr.maintain.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.type.Alias;


import java.util.Date;

/**
 * <p>
 * 仪器设备信息表
 * </p>
 *
 * @author Gonna
 * @since 2021-05-10
 */
@TableName("tb_instrument")
@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Alias("instrument")
public class Instrument {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */

    @TableId(value = "id",type = IdType.INPUT)
    private Long id;

    /**
     * 对外id
     */
    @TableField("public_key")
    private String publicKey;


    /**
     * 机构ID：关联tb_company机构表
     */
    @TableField("company_id")
    private Long companyId;
    /**
     * 仪器名称
     */
    @TableField("equipment_name")
    private String equipmentName;
    /**
     * 仪器设备大类:100=产品检验仪器;200=安全与功能验证仪器;300=人体实验仪器;400=其他;
     */
    @TableField("equipment_type")
    private String equipmentType;
    /**
     * 生产厂家
     */
    @TableField("manufacturer")
    private String manufacturer;
    /**
     * 仪器设备型号
     */
    @TableField("equipment_version")
    private String equipmentVersion;
    /**
     * 仪器设备编号
     */
    @TableField("equipment_no")
    private String equipmentNo;
    /**
     * 仪器设备价格：10万以内;10-30万;30-50万;50-100万;100万以上;
     */
    @TableField("equipment_price")
    private String equipmentPrice;
    /**
     * 仪器设备数量
     */
    @TableField("equipment_count")
    private Integer equipmentCount;
    /**
     * 校准有效期
     */
    @TableField("validity_time")
    private String validityTime;
    /**
     * 仪器设备功能
     */
    @TableField("equipment_function")
    private String equipmentFunction;
    /**
     * 仪器设备细类
     */
    @TableField("equipment_small")
    private String equipmentSmall;
    /**
     * 仪器设备亚类
     */
    @TableField("equipment_in")
    private String equipmentIn;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;


}
